<template>
<h3>setup语法</h3>
<h3>我要{{data}}</h3>
<input type="button" value="提交" @click="fn">
</template>

<script lang="ts" setup>
//直接定义
let data="好好学习天天向上"
function fn(){
    alert("牛逼")
}

</script>


<style>


</style>